<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>停止动画</title>
    <script src="./res/jquery-3.5.1.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
</head>

<body>
    <button id="hideBtn">72变</button>
    <button id="showBtn">恢复</button>
    <br><br><br><br>
    <img src="./img/head.png" width="300px" height="300px" alt="" style="position: absolute; left: 30px; top: 50px;">
</body>

</html>
<script>
    // $(window.document).ready(function(e) {
    $(function(e) {
        $('#hideBtn').click(function(e) {
            // slow fast
            $('img').animate({
                width: '+=300px'
            }).animate({
                height: '+=300px'
            }).animate({
                left: '300px'
            }).animate({
                top: '300px'
            }).animate({
                top: '50px'
            }).animate({
                left: '30px'
            }).animate({
                height: '-=300px'
            }).animate({
                width: '-=300px'
            });
        });
    });
</script>